package com.xxxx.server.service;

import com.xxxx.server.pojo.Employee;
import com.xxxx.server.produce.Sender;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * @Author : ymd
 * @Date : 2020/10/21 0021 16:08
 * @Version 1.0
 * @Description : 消息服务层
 */
@Service
public class AmqpService {
    @Resource
    private Sender sender;

    public void handler(Employee employee){
        sender.send(employee);
    }
}
